package ve.usb.ddp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;


public class FPaiProrroga extends org.apache.struts.action.ActionForm {
    
    
    public FPaiProrroga() {
        super();
        idProrroga = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        otorgado = false;
        fec_Ini = null;
        fec_Fin = null;

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idProrroga = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        otorgado = false;
        fec_Ini = null;
        fec_Fin = null;

    }

    public static FPaiProrroga clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FPaiProrroga fFPaiProrroga = (FPaiProrroga) sess.getAttribute("FPaiProrroga");
        if (fFPaiProrroga == null) {
            fFPaiProrroga = new FPaiProrroga();
            sess.setAttribute("FPaiProrroga", fFPaiProrroga);
        } else {
            fFPaiProrroga.reset(mapping, request);
        }
        return fFPaiProrroga;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idProrroga.
     */
    private Long idProrroga;

    /**
     * Getter for property idProrroga.
     * @return Value of property idProrroga.
     */
    public Long getIdProrroga() {
        return this.idProrroga;
    }

    /**
     * Setter for property idProrroga.
     * @param idProrroga New value of property idProrroga.
     */
    public void setIdProrroga(Long idProrroga) {
        this.idProrroga = idProrroga;
    }

/**
     * Holds value of property resolucion.
     */
    private Long resolucion;

    /**
     * Getter for property resolucion.
     * @return Value of property resolucion.
     */
    public Long getResolucion() {
        return this.resolucion;
    }

    /**
     * Setter for property resolucion.
     * @param resolucion New value of property resolucion.
     */
    public void setResolucion(Long resolucion) {
        this.resolucion = resolucion;
    }

/**
     * Holds value of property listPaiResolucion.
     */
    private List<Pair> listPaiResolucion;

    /**
     * Getter for property listPaiResolucion.
     * @return Value of property listPaiResolucion.
     */
    public List<Pair> getListPaiResolucion() {
        return this.listPaiResolucion;
    }

    /**
     * Setter for property listPaiResolucion.
     * @param listPaiResolucion New value of property listPaiResolucion.
     */
    public void setListPaiResolucion(List<Pair> listPaiResolucion) {
        this.listPaiResolucion = listPaiResolucion;
    }

/**
     * Holds value of property otorgado.
     */
    private boolean otorgado;

    /**
     * Getter for property otorgado.
     * @return Value of property otorgado.
     */
    public boolean getOtorgado() {
        return this.otorgado;
    }

    /**
     * Setter for property otorgado.
     * @param otorgado New value of property otorgado.
     */
    public void setOtorgado(boolean otorgado) {
        this.otorgado = otorgado;
    }

/**
     * Holds value of property fec_Ini.
     */
    private String fec_Ini;

    /**
     * Getter for property fec_Ini.
     * @return Value of property fec_Ini.
     */
    public String getFec_Ini() {
        return this.fec_Ini;
    }

    /**
     * Setter for property fec_Ini.
     * @param fec_Ini New value of property fec_Ini.
     */
    public void setFec_Ini(String fec_Ini) {
        this.fec_Ini = fec_Ini;
    }

/**
     * Holds value of property fec_Fin.
     */
    private String fec_Fin;

    /**
     * Getter for property fec_Fin.
     * @return Value of property fec_Fin.
     */
    public String getFec_Fin() {
        return this.fec_Fin;
    }

    /**
     * Setter for property fec_Fin.
     * @param fec_Fin New value of property fec_Fin.
     */
    public void setFec_Fin(String fec_Fin) {
        this.fec_Fin = fec_Fin;
    }




}